home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / misc / ispell-3.001 / ispell-3~ / ispell-3.1 / languages / english / msgs.h < prev   
Text File  |  1995-01-23  |  14KB  |  276 lines

  1. /*
  2.  * $Id: msgs.h,v 1.31 1994/12/27 23:08:57 geoff Exp $
  3.  *
  4.  * Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA
  5.  * All rights reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted provided that the following conditions
  9.  * are met:
  10.  *
  11.  * 1. Redistributions of source code must retain the above copyright
  12.  *    notice, this list of conditions and the following disclaimer.
  13.  * 2. Redistributions in binary form must reproduce the above copyright
  14.  *    notice, this list of conditions and the following disclaimer in the
  15.  *    documentation and/or other materials provided with the distribution.
  16.  * 3. All modifications to the source code must be clearly marked as
  17.  *    such.  Binary redistributions based on modified source code
  18.  *    must be clearly marked as modified versions in the documentation
  19.  *    and/or other materials provided with the distribution.
  20.  * 4. All advertising materials mentioning features or use of this software
  21.  *    must display the following acknowledgment:
  22.  *      This product includes software developed by Geoff Kuenning and
  23.  *      other unpaid contributors.
  24.  * 5. The name of Geoff Kuenning may not be used to endorse or promote
  25.  *    products derived from this software without specific prior
  26.  *    written permission.
  27.  *
  28.  * THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  29.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31.  * ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  32.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38.  * SUCH DAMAGE.
  39.  *
  40.  */
  41.  
  42. /*
  43.  * Messages header file.
  44.  *
  45.  * This file contains all text strings that are written by any of the
  46.  * C programs in the ispell package.  The strings are collected here so that
  47.  * you can have the option of translating them into your local language for
  48.  * the benefit of your users.
  49.  *
  50.  * Anyone who goes to the effort of making a translation may wish to return
  51.  * the translated strings to me, geoff@ITcorp.com, so that I can include
  52.  * them in a later distribution under #ifdef control.
  53.  *
  54.  * Besides the strings in this header file, you may also want to translate
  55.  * the strings in version.h, which give the version and copyright information.
  56.  * However, any translation of these strings MUST accurately preserve the
  57.  * legal rights under international law;  you may wish to consult a lawyer
  58.  * about this since you will be responsible for the results of any
  59.  * incorrect translation.
  60.  *
  61.  * Most of the strings below are simple printf format strings.  If the printf
  62.  * takes more than one parameter, the string is given as a parameterized
  63.  * macro in case your local language needs a different word order.
  64.  */
  65.  
  66. /*
  67.  * $Log: msgs.h,v $
  68.  * Revision 1.31  1994/12/27  23:08:57  geoff
  69.  * Add a message to be issued if a word contains illegal characters.
  70.  *
  71.  * Revision 1.30  1994/10/25  05:46:40  geoff
  72.  * Improve a couple of error messages relating to affix flags.
  73.  *
  74.  * Revision 1.29  1994/10/04  03:46:23  geoff
  75.  * Add a missing carriage return in the help message
  76.  *
  77.  * Revision 1.28  1994/09/16  05:07:00  geoff
  78.  * Add the BAD_FLAG message, and start a sentence in another message with
  79.  * an uppercase letter.
  80.  *
  81.  * Revision 1.27  1994/07/28  05:11:38  geoff
  82.  * Log message for previous revision: add BHASH_C_ZERO_COUNT.
  83.  *
  84.  * Revision 1.26  1994/07/28  04:53:49  geoff
  85.  *
  86.  * Revision 1.25  1994/05/24  04:54:36  geoff
  87.  * Add error messages for affix-flag checking.
  88.  *
  89.  * Revision 1.24  1994/01/25  07:12:42  geoff
  90.  * Get rid of all old RCS log lines in preparation for the 3.1 release.
  91.  *
  92.  */
  93.  
  94. /*
  95.  * The following strings are used in numerous places:
  96.  */
  97. #define BAD_FLAG    "\r\nIllegal affix flag character '%c'\r\n"
  98. #define CANT_OPEN    "Can't open %s\r\n"
  99. #define CANT_CREATE    "Can't create %s\r\n"
  100. #define WORD_TOO_LONG(w) "\r\nWord '%s' too long at line %d of %s, truncated\r\n", \
  101.               w, __LINE__, __FILE__
  102.  
  103. /*
  104.  * The following strings are used in buildhash.c:
  105.  */
  106. #define BHASH_C_NO_DICT        "No dictionary (%s)\n"
  107. #define BHASH_C_NO_COUNT    "No count file\n"
  108. #define BHASH_C_BAD_COUNT    "Bad count file\n"
  109. #define BHASH_C_ZERO_COUNT    "No words in dictionary\n"
  110.     /* I think this message looks better when it's nearly 80 characters wide,
  111.      * thus the ugly formatting in the next two defines.  GK 9-87 */
  112. #define BHASH_C_BAFF_1(max, excess) \
  113.   "    Warning:  this language table may exceed the maximum total affix length\nof %d by up to %d bytes.  You should either increase MAXAFFIXLEN in config.X\nor shorten your largest affix/strip string difference.  (This is the\n", \
  114.                   max, excess
  115. #define BHASH_C_BAFF_2 \
  116.   "difference between the affix length and the strip length in a given\nreplacement rule, or the affix length if there is no strip string\nin that rule.)\n"
  117. #define BHASH_C_OVERFLOW    "Hash table overflowed by %d words\n"
  118. #define BHASH_C_CANT_OPEN_DICT "Can't open dictionary\n"
  119. #define BHASH_C_NO_SPACE    "Couldn't allocate hash table\n"
  120. #define BHASH_C_COLLISION_SPACE "\ncouldn't allocate space for collision\n"
  121. #define BHASH_C_COUNTING    "Counting words in dictionary ...\n"
  122. #define BHASH_C_WORD_COUNT    "\n%d words\n"
  123. #define BHASH_C_USAGE        "Usage:  buildhash [-s] dict-file aff-file hash-file\n\tbuildhash -c count aff-file\n"
  124.  
  125. /*
  126.  * The following strings are used in correct.c:
  127.  */
  128. #define CORR_C_HELP_1        "Whenever a word is found that is not in the dictionary,\r\n"
  129. #define CORR_C_HELP_2        "it is printed on the first line of the screen.  If the dictionary\r\n"
  130. #define CORR_C_HELP_3        "contains any similar words, they are listed with a number\r\n"
  131. #define CORR_C_HELP_4        "next to each one.  You have the option of replacing the word\r\n"
  132. #define CORR_C_HELP_5        "completely, or choosing one of the suggested words.\r\n"
  133.     /* You may add HELP_6 through HELP_9 if your language needs more lines */
  134. #define CORR_C_HELP_6        ""
  135. #define CORR_C_HELP_7        ""
  136. #define CORR_C_HELP_8        ""
  137. #define CORR_C_HELP_9        ""
  138. #define CORR_C_HELP_COMMANDS    "\r\nCommands are:\r\n\r\n"
  139. #define CORR_C_HELP_R_CMD    "R       Replace the misspelled word completely.\r\n"
  140. #define CORR_C_HELP_BLANK    "Space   Accept the word this time only.\r\n"
  141. #define CORR_C_HELP_A_CMD    "A       Accept the word for the rest of this session.\r\n"
  142. #define CORR_C_HELP_I_CMD    "I       Accept the word, and put it in your private dictionary.\r\n"
  143. #define CORR_C_HELP_U_CMD    "U       Accept and add lowercase version to private dictionary.\r\n"
  144. #define CORR_C_HELP_0_CMD    "0-n     Replace with one of the suggested words.\r\n"
  145. #define CORR_C_HELP_L_CMD    "L       Look up words in system dictionary.\r\n"
  146. #define CORR_C_HELP_X_CMD    "X       Write the rest of this file, ignoring misspellings,\r\n        and start next file.\r\n"
  147. #define CORR_C_HELP_Q_CMD    "Q       Quit immediately.  Asks for confirmation.\r\n        Leaves file unchanged.\r\n"
  148. #define CORR_C_HELP_BANG    "!       Shell escape.\r\n"
  149. #define CORR_C_HELP_REDRAW    "^L      Redraw screen.\r\n"
  150. #define CORR_C_HELP_SUSPEND    "^Z      Suspend program.\r\n"
  151. #define CORR_C_HELP_HELP    "?       Show this help screen.\r\n"
  152. #define CORR_C_HELP_TYPE_SPACE    "-- Type space to continue --"
  153.  
  154. #define CORR_C_FILE_LABEL    "              File: %s"
  155. #define CORR_C_READONLY        "[READONLY]"
  156. #define CORR_C_MINI_MENU    "[SP] <number> R)epl A)ccept I)nsert L)ookup U)ncap Q)uit e(X)it or ? for help\r\n"
  157. #define CORR_C_CONFIRM_QUIT    "Are you sure you want to throw away your changes? "
  158. #define CORR_C_REPLACE_WITH    "Replace with: "
  159. #define CORR_C_LOOKUP_PROMPT    "Lookup string ('*' is wildcard): "
  160. #define CORR_C_MORE_PROMPT    "-- more --"
  161. #define CORR_C_BLANK_MORE    "\r           \r"
  162. #define CORR_C_END_LOOK        "--end--"
  163.  
  164. /*
  165.  * The following strings are used in defmt.c:
  166.  */
  167. #define DEFMT_C_TEX_MATH_ERROR    "****ERROR in parsing TeX math mode!\r\n"
  168. #define DEFMT_C_LR_MATH_ERROR    "***ERROR in LR to math-mode switch.\n"
  169.  
  170. /*
  171.  * The following strings are used in icombine.c:
  172.  */
  173. #define ICOMBINE_C_BAD_TYPE    "icombine:  unrecognized formatter type '%s'\n"
  174. #define ICOMBINE_C_USAGE    "Usage:  icombine [-T suffix] [aff-file] < wordlist\n"
  175.  
  176. /*
  177.  * The following strings are used in ispell.c:
  178.  */
  179. #define ISPELL_C_USAGE1        "Usage: %s [-dfile | -pfile | -wchars | -Wn | -t | -n | -x | -b | -S | -B | -C | -P | -m | -Lcontext | -M | -N | -Ttype | -V] file .....\n"
  180. #define ISPELL_C_USAGE2        "       %s [-dfile | -pfile | -wchars | -Wn | -t | -n | -Ttype] -l\n"
  181. #ifndef USG
  182. #define ISPELL_C_USAGE3        "       %s [-dfile | -pfile | -ffile | -Wn | -t | -n | -s | -B | -C | -P | -m | -Ttype] {-a | -A}\n"
  183. #else
  184. #define ISPELL_C_USAGE3        "       %s [-dfile | -pfile | -ffile | -Wn | -t | -n | -B | -C | -P | -m | -Ttype] {-a | -A}\n"
  185. #endif
  186. #define ISPELL_C_USAGE4        "       %s [-dfile] [-wchars | -Wn] -c\n"
  187. #define ISPELL_C_USAGE5        "       %s [-dfile] [-wchars] -e[1-4]\n"
  188. #define ISPELL_C_USAGE6        "       %s [-dfile] [-wchars] -D\n"
  189. #define ISPELL_C_USAGE7        "       %s -v\n"
  190. #define ISPELL_C_TEMP_DISAPPEARED "temporary file disappeared (%s)\r\n"
  191. #define ISPELL_C_BAD_TYPE    "ispell:  unrecognized formatter type '%s'\n"
  192. #define ISPELL_C_NO_FILE    "ispell:  specified file does not exist\n"
  193. #define ISPELL_C_NO_FILES    "ispell:  specified files do not exist\n"
  194. #define ISPELL_C_CANT_WRITE    "Warning:  Can't write to %s\r\n"
  195. #define ISPELL_C_OPTIONS_ARE    "Compiled-in options:\n"
  196.  
  197. /*
  198.  * The following strings are used in lookup.c:
  199.  */
  200. #define LOOKUP_C_CANT_READ    "Trouble reading hash table %s\r\n"
  201. #define LOOKUP_C_NULL_HASH    "Null hash table %s\r\n"
  202. #define LOOKUP_C_SHORT_HASH(name, gotten, wanted) \
  203.                 "Truncated hash table %s:  got %d bytes, expected %d\r\n", \
  204.                   name, gotten, wanted
  205. #define LOOKUP_C_BAD_MAGIC(name, wanted, gotten) \
  206.                 "Illegal format hash table %s - expected magic 0x%x, got 0x%x\r\n", \
  207.                   name, wanted, gotten
  208. #define LOOKUP_C_BAD_MAGIC2(name, wanted, gotten) \
  209.                 "Illegal format hash table %s - expected magic2 0x%x, got 0x%x\r\n", \
  210.                   name, wanted, gotten
  211. #define LOOKUP_C_BAD_OPTIONS(gotopts, gotchars, gotlen, wantedopts, wantedchars, wantedlen) \
  212.                 "Hash table options don't agree with buildhash - 0x%x/%d/%d vs. 0x%x/%d/%d\r\n", \
  213.                   gotopts, gotchars, gotlen, \
  214.                   wantedopts, wantedchars, wantedlen
  215. #define LOOKUP_C_NO_HASH_SPACE    "Couldn't allocate space for hash table\r\n"
  216. #define LOOKUP_C_BAD_FORMAT    "Illegal format hash table\r\n"
  217. #define LOOKUP_C_NO_LANG_SPACE    "Couldn't allocate space for language tables\r\n"
  218.  
  219. /*
  220.  * The following strings are used in makedent.c:
  221.  */
  222. #define MAKEDENT_C_NO_WORD_SPACE "\r\nCouldn't allocate space for word '%s'\r\n"
  223. #define MAKEDENT_C_BAD_WORD_CHAR "\r\nWord '%s' contains illegal characters\r\n"
  224.  
  225. /*
  226.  * The following strings are used in parse.y:
  227.  */
  228. #define PARSE_Y_8_BIT        "Eighth bit ignored (recompile ispell without NO8BIT)"
  229. #define PARSE_Y_NO_WORD_STRINGS    "wordchars statement may not specify string characters"
  230. #define PARSE_Y_UNMATCHED    "Unmatched charset lengths"
  231. #define PARSE_Y_NO_BOUNDARY_STRINGS "boundarychars statement may not specify string characters"
  232. #define PARSE_Y_LONG_STRING    "String character is too long"
  233. #define PARSE_Y_NULL_STRING    "String character must have nonzero length"
  234. #define PARSE_Y_MANY_STRINGS    "Too many string characters"
  235. #define PARSE_Y_NO_SUCH_STRING    "No such string character"
  236. #define PARSE_Y_MULTIPLE_STRINGS "Alternate string character was already defined"
  237. #define PARSE_Y_LENGTH_MISMATCH    "Upper and lower versions of string character must be same length"
  238. #define PARSE_Y_WRONG_NROFF    "Incorrect character count in nroffchars statement"
  239. #define PARSE_Y_WRONG_TEX    "Incorrect character count in TeXchars statement"
  240. #define PARSE_Y_DOUBLE_COMPOUND    "Compoundwords option may only appear once"
  241. #define PARSE_Y_LONG_FLAG    "Flag must be single character"
  242. #define PARSE_Y_BAD_FLAG    "Flag must be alphabetic"
  243. #define PARSE_Y_DUP_FLAG    "Duplicate flag"
  244. #define PARSE_Y_NO_SPACE    "Out of memory"
  245. #define PARSE_Y_NEED_BLANK    "Single characters must be separated by a blank"
  246. #define PARSE_Y_MANY_CONDS    "Too many conditions;  8 maximum"
  247. #define PARSE_Y_EOF        "Unexpected EOF in quoted string"
  248. #define PARSE_Y_LONG_QUOTE    "Quoted string too long, max 256 characters"
  249. #define PARSE_Y_ERROR_FORMAT(file, lineno, error) \
  250.                 "%s line %d: %s\n", file, lineno, error
  251. #define PARSE_Y_MALLOC_TROUBLE    "yyopen:  trouble allocating memory\n"
  252. #define PARSE_Y_UNGRAB_PROBLEM    "Internal error:  ungrab buffer overflow"
  253. #define PARSE_Y_BAD_DEFORMATTER    "Deformatter must be either 'nroff' or 'tex'"
  254. #define PARSE_Y_BAD_NUMBER    "Illegal digit in number"
  255.  
  256. /*
  257.  * The following strings are used in term.c:
  258.  */
  259. #define TERM_C_SMALL_SCREEN    "Screen too small:  need at least %d lines\n"
  260. #define TERM_C_NO_BATCH        "Can't deal with non-interactive use yet.\n"
  261. #define TERM_C_CANT_FORK    "Couldn't fork, try later.\r\n"
  262. #define TERM_C_TYPE_SPACE    "\n-- Type space to continue --"
  263.  
  264. /*
  265.  * The following strings are used in tree.c:
  266.  */
  267. #define TREE_C_CANT_UPDATE    "Warning: Cannot update personal dictionary (%s)\r\n"
  268. #define TREE_C_NO_SPACE        "Ran out of space for personal dictionary\r\n"
  269. #define TREE_C_TRY_ANYWAY    "Continuing anyway (with reduced performance).\r\n"
  270.  
  271. /*
  272.  * The following strings are used in unsq.c:
  273.  */
  274. #define UNSQ_C_BAD_COUNT    "Illegal count character 0x%x\n"
  275. #define UNSQ_C_SURPRISE_EOF    "Unexpected EOF\n"
  276.